package com.haoshuang.zhouzhoubang.config

import com.lnkj.jialubao.utils.AccountUtils
import com.lnkj.jialubao.utils.AccountUtils.isTestEnvironment

/**
 * 通用配置信息
 */
object Config {

    const val logout_clear = "logout_clear"
    const val guide = "guide"

    const val kUser = "kUser"
    const val kToken = "kToken"

    /**
     * 是否是测试模式
     */
//    const val isTestEnvironment = true
    const val isTestEnvironment = false
    val baseUrl = if (isTestEnvironment) {
        if (AccountUtils.isTestEnvironment) "https://test.zhouzhoujiafu.com/" else "https://zhouzhoujiafu.com/"
    }else{
        "https://zhouzhoujiafu.com/"
    }

    /**
     * token过期后 是否可以跳转到登录界面
     */
    const val kIsTokenErrorJumpLoginPage = "kIsTokenErrorJumpLoginPage"

    /**
     * 是否同意并阅读权限
     */
    const val kIsAgreement = "kIsAgreement"

    /**
     * 隐私协议弹窗
     */
    const val kIsAgreementDialog = "kIsAgreementDialog"

    /**
     * 是否同意推送通知
     */
    const val kIsAgreeNotification = "kIsAgreeNotification"

    // OSS 配置信息
    const val endpoint = "https://oss-cn-hangzhou.aliyuncs.com/" //上传用
    const val accessKeyId = "LTAI5tGWYXa8KcyYmhoj2BTW"
    const val accessKeySecret = "wpcIAJBBIyYec0XJnsxlwQMTOTjm83"
    const val testBucket = "jialubao" // 存储空间名称
    const val videoUrlSuffix =
        "?x-oss-process=video/snapshot,t_1000,m_fast,ar_auto" // OSS 视频最后一帧 后缀

    const val WX_ID = "wxb8495d69bfd9d07b"

    // 通知设置 提示音
    const val defaultNotice = "yinyue.mp3"

    /**
     * 新订单提示音
     */
    const val kNewOrderNotice = "kNewOrderNotice"
    const val newOrderNotice = "xindingda.mp3"

    /**
     * 指派订单提示音
     */
    const val kAssignOrderNotice = "kAssignOrderNotice"
    const val assignOrderNotice = "dingdabeizhipai.mp3"

    /**
     * 完工提示音
     */
    const val kFinishOrderNotice = "kFinishOrderNotice"
    const val finishOrderNotice = "fuwujieshu.mp3"

    /**
     * 上门超时提示音
     */
    const val kTimeoutOrderNotice = "kTimeoutOrderNotice"
    const val timeoutOrderNotice = "shangmenchaoshi.mp3"

    /**
     * 异常订单提示音
     */
    const val kErrorOrderNotice = "kErrorOrderNotice"
    const val errorOrderNotice = "yichangdingdan.mp3"

}